<div class="modal fade in ip-box" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true" id="newlyAdded" *ngIf="initService.init">
	<div class="modal-dialog modal-lg-f" role="document" style="margin: 254px auto;">
		<div class="modal-content">
			<div class="modal-header">             
                <h4 class="modal-title" id="myModalLabel">系统参数管理 — 新增</h4>
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" (click)="initService._init()">×</button>
            </div>
			<div class="modal-body">
				<form #addForm="ngForm" (ngSubmit)="_onSubmit(addForm.value)">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">系统参数键：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="sysKey" 
								   class="form-control" 
								   autocomplete="off" 
								   required
								   #sysKey="ngModel"
								   ngModel
								   placeholder="请输入系统参数键"
								   > 
						    <label class="red required">*</label>
							<div class="error" *ngIf="sysKey.invalid && (sysKey.touched)">
								<small class="error" *ngIf="sysKey.errors.required">请输入系统参数键</small>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">系统参数值：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="sysValue" 
								   class="form-control" 
								   autocomplete="off" 
								   required
								   #sysValue="ngModel"
								   ngModel
								   placeholder="请输入系统参数值"
								   > 
						    <label class="red required">*</label>
							<div class="error" *ngIf="sysValue.invalid && (sysValue.touched)">
								<small class="error" *ngIf="sysValue.errors.required">请输入系统参数值</small>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">名称：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="displayName" 
								   class="form-control"
								   autocomplete="off" 
								   required 
								   #displayName="ngModel"
								   ngModel
								   placeholder="请输入名称"
								   > 
							<label class="red required">*</label>
							<div class="error" *ngIf="displayName.invalid && (displayName.touched)">
								<small class="error" *ngIf="displayName.errors.required">请输入名称</small>
							</div>
						</div>
					</div>
					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">是否启用：</label>
						<div class="col-xs-12 col-sm-9">
							<label class="toggle toggle-positive">
                                <input type="checkbox" name="sysStatus" #sysStatus=ngModel [(ngModel)]="initial" />
                                <div class="track">
                                    <div class="tit" *ngIf="initial">启用</div>
                                    <div class="tit right" *ngIf="!initial">禁用</div>
                                    <div class="handle"></div>
                                </div>
                            </label>
						</div>
					</div>
					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">描述：</label>
						<div class="col-xs-12 col-sm-9">
							<textarea rows="4" 
									  type="text" 
									  name="description"
									  class="form-control"
									  #description
									  ngModel
									  placeholder="描述"
									  >                                    
                            </textarea>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" 
							mat-raised-button
							class="btn btn-default" 
							data-dismiss="modal"
							(click)="initService._init()"
							>取消
						</button>
						<button type="submit" 
							mat-button
							[disabled]="addForm.invalid"
							class="btn btn-primary" 
							><span class="glyphicon glyphicon-plus"></span> 新增
						</button>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>